package com.twu.biblioteca.movie;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class MovieManager {
    private static HashMap<Movie, Integer> map = new LinkedHashMap<Movie, Integer>();

    static {
        map.put(new Movie("Sholay", 1975, "Ramesh Sippy"), 1);
        map.put(new Movie("Dream girls", 2006, "Bill Condon", 6), 1);
        map.put(new Movie("Iron man 3", 2013, "Shane Black", 9), 1);
        map.put(new Movie("Man of Steel", 2013, "Zack Snyder", 8), 1);
        map.put(new Movie("Star Wars", 1977, " George Lucas", 9), 1);
        map.put(new Movie("The Intouchables", 2011, "Olivier Nakache", 9), 1);
        map.put(new Movie("The Green Mile", 1999, "Frank Darabont", 7), 1);
        map.put(new Movie("The Shawshank Redemption", 1994, "Frank Darabont", 8), 1);
        map.put(new Movie("The Godfather", 1972, " Francis Ford Coppola", 9), 1);
        map.put(new Movie("The Dark Knight", 2008, "Christopher Nolan", 8), 1);
        map.put(new Movie("The Lord of the Rings: The Return of the King", 2003, " Peter Jackson", 9), 1);
        map.put(new Movie("Inception", 2010, "Christopher Nolan", 9), 1);
        map.put(new Movie("City of God", 2002, " Fernando Meirelles", 7), 1);
        map.put(new Movie("Django Unchained", 2012, "Quentin Tarantino", 6), 1);
        map.put(new Movie("Gran Torino", 2008, "Clint Eastwood", 6), 1);
    }

    public HashMap<Movie, Integer> getMovies() {
        return map;
    }

    public String format() {
        return "Movie\tYear\tDirector\tRating";
    }
}
